package com.mzm.tests;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TestsLog {

	private static final Logger logger = LoggerFactory.getLogger("TestsLog");

	private static String getCaller() {
		try {
			throw new Exception();
		} catch (Exception e) {
			return e.getStackTrace()[2].getClassName() + "."
					+ e.getStackTrace()[2].getMethodName() + "()";
		}
	}
	
	public static void log(String msg){
		logger.info(getCaller() + ": " +msg);
	}
}
